<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    //定义数组
    var arr = [true,1,1,true,'er','er',2,4,5,5];
    //定义数组去重函数
    const duplicateRemoval = arr =>{
        return Array.from(new Set(arr));
    }
    document.write("原数组:" + arr)
    document.write("<br/>")
    document.write("去重后的数组:" + duplicateRemoval(arr));
</script>
</html>